from apscheduler.schedulers.blocking import BlockingScheduler

sc = BlockingScheduler()

def myJob1():
    print '11111'

@sc.scheduled_job('interval', id='my_job_id', seconds=5)
def myJob2():
    print '22222'


sc.add_job(myJob1,'interval', seconds=5)
sc.start()